﻿@using MovingFromPartialViews.Models
@model IndexModel


@foreach (var cat in Model.Categories)
{
    <div class="row category">
        <div class="span12">@cat.Name</div>
    </div>
    foreach (var sub in cat.Subscriptions)
    {
        <div class="row @(sub.UnreadCount > 0 ? "unread-items" : "no-items")">
            <div class="offset1 span6">[@sub.UnreadCount] @sub.Name</div>
            <div class="span2">
                <button class="btn btn-mini" type="button" action="del" data-name="@sub.Name">Delete</button>
            </div>
        </div>
    }
}
